package com.jiyici.utils;

import android.util.Log;

public class LogUtil {

    public static final boolean ENABLED = true;
    private static final String TAG = "jiyici";

    public static void info(String tag, Object msg) {
        if (ENABLED)
            Log.i(TAG, "[" + tag + "] " + msg);
    }

    public static void error(String tag, Object msg, Throwable e) {
        if (ENABLED)
            Log.e(TAG, "[" + tag + "] " + msg, e);
    }

}
